
//
//  DViewController.m
//  框架
//
//  Created by MyMac on 15/9/23.
//  Copyright (c) 2015年 tongfang. All rights reserved.
//

#import "DViewController.h"

@interface DViewController ()

@end

@implementation DViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"D";
    self.view.backgroundColor=[UIColor grayColor];
    
    // Do any additional setup after loading the view.
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    UIViewController*vc=[[UIViewController alloc]init];
    vc.view.backgroundColor=[UIColor greenColor];
    [self.navigationController pushViewController:vc animated:YES];
    
}
-(void)dealloc
{
    NSLog(@"%@",self);

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
